const Command = {
  ajax: 'ajax',
  axios: 'axios'
}
const Lanuage = {
  'zh-cn': 'zh-cn',
  'en-us': 'en-us'
}
const RequestContentType = {
  'application/x-www-form-urlencoded': 'application/x-www-form-urlencoded; charset=UTF-8'
}

const SpecType = {
  Number: 1, // 数字类型
  Text: 2, // 文本
  Interregional: 3, // 区间
  Boolean: 4 // 布尔
}

const ResponseCode = {
  OK: 200,
  ErrorToken: 106,
  Constraint: 202,
  NoChange: 204,
  UserNotEnabled: 1001,
  ErrorPassword: 1002,
  UserNotExists: 122
}

const StorageKey = {
  Token: 'jwt',
  UserId: 'userid',
  UserName: 'username',
  FullName: 'fullname',
  Password: 'pwd',
  SidebarStatus: 'sidebarStatus',
  Lanuage: 'lanuage',
  ReturnUrl: 'returnurl',
  Menus: 'menus',
  Permissions: 'permission',
  TokenTimer: 'jwt_',
  Connection: 'connection',
  DocumentSizeLimit: 'DocumentSizeLimit',
  DocumentQueueSizeLimit: 'DocumentQueueSizeLimit',
  OnlineMode: 'OnlineMode'
}

const SubmitMethod = {
  Get: 1,
  Post: 2,
  Put: 3,
  Delete: 4
}

const MethodData = {
  Base: 0,
  NoSql: 1
}

const Enum = {
  Command,
  Lanuage,
  RequestContentType,
  ResponseCode,
  StorageKey,
  SubmitMethod,
  MethodData
}

export {
  Command,
  Lanuage,
  RequestContentType,
  ResponseCode,
  StorageKey,
  SubmitMethod,
  MethodData
}

export default Enum
